package com.moetube.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "paul.url")
public class MyProperties {

    @Valid
    List<String> url = new ArrayList();


    public List<String> getUrl() {
        return url;
    }

    public void setUrl(List<String> url) {
        this.url = url;
    }
}
